package com.bing.bingPro.mapper;

import com.bing.bingPro.controller.vo.TableRelationVO;
import com.bing.bingPro.entity.MgDamTableRelation;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 29821
* @description 针对表【mg_dam_table_relation(数据资产数据表关系配置)】的数据库操作Mapper
* @createDate 2024-03-18 10:23:34
* @Entity com.bing.bingPro.entity.MgDamTableRelation
*/
public interface MgDamTableRelationMapper extends BaseMapper<MgDamTableRelation> {

    List<MgDamTableRelation> getByChildTableId(@Param("tableId") Long tableId);

    int deleteBatchIds(@Param("ids") List<Long> ids);

    Boolean deleteRelation(@Param("tableId") Long tableId);

    List<TableRelationVO> selectTableRelations(@Param("dbIds") List<Long> dbIds);

    List<Long> selectRelationId(@Param("tableId") Long tableId);

    TableRelationVO selectRelationList(@Param("tableId") Long tableId);

    List<Long> selectDownRelation(@Param("tableId") Long tableId);

    String selectTableName(@Param("tableId") Long tableId);
}




